package com.itrus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itrus.domain.Wallet;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface WalletMapper extends BaseMapper<Wallet> {

    @Update("update wallet set balance=balance+#{amount} where id = #{id}")
    int addBalance(@Param("id")Long id, @Param("amount")Integer amount);

}
